package com.qf.mapper;

import com.qf.dto.StudentDto;
import com.qf.dto.TeacherDto;
import com.qf.pojo.Teacher;
import java.util.List;

public interface TeacherMapper {

    public void add(String username,String password,String name,String sex,int age,int courseId,String photo);

    public void delete(String username);

    public void update(String username,String newPassword);

    public void update(String username,String name,String sex,int age,int courseId);

    public void update(String username,String name,String sex,int age,int courseId,String photo);

    public Teacher getTeacher(String username);

    public Teacher getTeacher(String username,String password);

    public List<Teacher> getTeachers(int offset,int count);
    public List<TeacherDto> getTeachersAndCourses(int offset, int count);

    public int getAllCount();
}
